package top.jinlijun.heytea.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import top.jinlijun.heytea.entities.Store;
import top.jinlijun.heytea.mapper.StoreMapper;
import top.jinlijun.heytea.service.IStoreService;

import java.util.List;

@Service
@Transactional
public class StoreServiceImpl implements IStoreService {

    @Autowired
    private StoreMapper storeMapper;

    @Override
    public List<Store> getAllStore() {
        return storeMapper.getAllStore();
    }

    @Override
    public Store getStoreById(Integer id) {
        return storeMapper.getStoreById(id);
    }
}
